package com.lightningtrade.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel(description = "秒杀活动实体类")
public class SysFlashSale {

    @ApiModelProperty(value = "活动编号", example = "1", required = true)
    private int id;

    @ApiModelProperty(value = "商品编号", example = "101", required = true)
    private int productId;

    @ApiModelProperty(value = "秒杀价格", example = "99.99", required = true)
    private BigDecimal price;

    @ApiModelProperty(value = "秒杀库存", example = "100", required = true)
    private int stock;

    @ApiModelProperty(value = "开始时间", example = "2024-12-10 00:00:00", required = true)
    private Date startTime;

    @ApiModelProperty(value = "结束时间", example = "2024-12-10 23:59:59", required = true)
    private Date endTime;

    @ApiModelProperty(value = "状态", notes = "1=进行中, 0=已结束", example = "1")
    private byte status;

    @ApiModelProperty(value = "创建时间", example = "2024-12-01 10:00:00")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间", example = "2024-12-01 10:00:00")
    private Date updatedAt;

    // Getter and Setter methods
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }
}
